/**
 * Date:2017年10月17日下午3:15:19
 *
 */

package com.xue.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xue.service.AppService;

/**
 * 
 * Description: 系统控制器,主要处理一些不需要登录就能操作的逻辑 <br/>
 * Date: 2018年10月11日 下午4:22:09 <br/>
 *
 * @author xuejianxinokok@163.com
 */
@Controller
@RequestMapping(value = "/")
public class AppController {
	private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(AppController.class);
	@Autowired
	private AppService appService;

	@RequestMapping(value = "test1")
	@ResponseBody
	public String test1() {
		String ret = System.currentTimeMillis() + " test ok";
		appService.test1();
		return ret;
	}

	@RequestMapping(value = "test2")
	@ResponseBody
	public String test2() {
		String ret = System.currentTimeMillis() + " test ok";
		appService.test2();
		return ret;
	}

}